<%@ page import="com.xinjie.www.po.User" %>
<%@ page import="com.xinjie.www.util.Constants" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>查看/修改个人信息</title>
    <style type="text/css">
        table {
            width: 500px;
            border: 1px solid red;
            border-collapse: collapse;
        }

        th, td {
            border: 1px solid red;
        }
    </style>
</head>
<body>
<% User u = (User) request.getSession().getAttribute(Constants.USER_SESSION);%>
<div align="center">
    <table>
        <tr>
            <th>用户名</th>
            <th>密码</th>
            <th>性别</th>
            <th>生日</th>
            <th>个性签名</th>
        </tr>
        <tr>
            <%= "<td>" + u.getUserName() + "</td>"%>
            <%="<td>" + u.getPassword() + "</td>"%>
            <%="<td>" + u.getSex() + "</td>"%>
            <%="<td>" + u.getBirthday() + "</td>"%>
            <%="<td>" + u.getSign() + "</td>"%>
        </tr>
    </table>
    您可选择修改的信息有：<br>
    <a href="ModifyUsername.jsp">1.修改用户名</a> <br>
    <a href="ModifyPassword.jsp">2.修改密码</a> <br>
    <a href="ModifySign.jsp">3.修改个性签名</a> <br>
    <a href="UserFrame.jsp">返回</a>
    <%if (request.getSession().getAttribute("ModifySignSuccess") != null) {%>
    <%=request.getSession().getAttribute("ModifySignSuccess")%>
    <%request.getSession().removeAttribute("ModifySignSuccess");%>
    <%}%>
    <%if (request.getSession().getAttribute("ModifyUserNameLose") != null) {%>
    <%=request.getSession().getAttribute("ModifyUserNameLose")%>
    <%request.getSession().removeAttribute("ModifyUserNameLose");%>
    <%}%>
    <%if (request.getSession().getAttribute("ModifyPasswordLose") != null) {%>
    <%=request.getSession().getAttribute("ModifyPasswordLose")%>
    <%request.getSession().removeAttribute("ModifyPasswordLose");%>
    <%}%>
</div>
</body>
</html>
